<?php
header('Content-type:text/json;charset=utf-8;');
date_default_timezone_set("PRC");
$url="https://api.vvhan.com/api/acgimg";
$type = $_GET['type'];
if($type=="json"){
$result = file_get_contents($url."?type=json");
echo $result;
}
else{
header("Location:".$url);
}
?>